﻿namespace Abstraction
{
    using System;

    public class FiguresExample
    {
        public static void Main()
        {
            Circle circle = new Circle(5);
            Console.WriteLine("circle. My perimeter is {0}. Surface is {1}.", circle.CalcPerimeter(), circle.CalcSurface());
            Rectangle rect = new Rectangle(2, 3);
            Console.WriteLine("I am a rectangle. Perimeter is {0}. Surface is {1}.", rect.CalcPerimeter(), rect.CalcSurface());
        }
    }
}